package testplan.servlets;

import com.google.inject.Inject;
import com.google.inject.Singleton;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * This action echo URL.
 */
@Singleton
public class EchoActionServlet extends HttpServlet
{
    protected void service(HttpServletRequest request, HttpServletResponse response) throws IOException
    {
        response.getOutputStream().println(request.getRequestURI());
    }
}
